﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo2
{
    class Program
    {
        static void Main(string[] args)
        {
            Cat cat = new Cat();
            cat.Cry();
            cat.Eat();
            cat.Sleep();
            cat.Walk();
            cat.Seeinnight();
            cat.Leg = 4;
            Console.WriteLine("我有{0}条腿",cat.Leg);

            Console.WriteLine("--------------------");

            Eagle eagle = new Eagle();
            eagle.Cry();
            eagle.Eat();
            eagle.Sleep();
            eagle.Walk();
            eagle.Fly();
            eagle.Leg = 2;
            Console.WriteLine("我有{0}条腿", eagle.Leg);
        }
    }
}
